package com.hioove.test.config;

import com.hioove.core.aop.annotation.After;
import com.hioove.core.aop.annotation.Aspect;
import com.hioove.core.aop.annotation.Before;
import com.hioove.core.aop.annotation.Pointcut;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

@Aspect
public class AopLogConfig {
    static Logger log = LoggerFactory.getLogger(AopLogConfig.class);

    @Pointcut
    public void pointcut() {
        log.info("i am aop-log-config pointcut!!!");
        long l = System.currentTimeMillis();
    }

    @Before
    public void before() {
        log.info("i am aop-log-config before!!!");
        long l = System.currentTimeMillis();
    }

    @After
    public void after() {
        log.info("i am aop-log-config after!!!");
        long l = System.currentTimeMillis();
    }
}
